from selenium.webdriver.common.by import By

from keywords import Keywords
from selenium import webdriver

driver = webdriver.Chrome()
k = Keywords(driver)
k.open_url(url="http://novel.hctestedu.com/user/login.html")
k.on_input(by=By.NAME, locator="txtUName", text="15574113908")
k.on_input(by=By.ID, locator="txtPassword", text="123456")
k.on_click(by=By.ID, locator="btnLogin")
k.wait(time=6)
